package com.lap.auth.application.organization.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
import lombok.Data;

@Data
@Schema(description = "组织树数据传输")
public class OrgNodeDto {

  @Schema(description = "唯一标识")
  private Integer id;

  @Schema(description = "上级组织ID")
  private Integer parentId;

  @Schema(description = "组织路径")
  private List<Integer> pidPaths;

  @Schema(description = "编码")
  private String code;

  @Schema(description = "名称")
  private String name;

  @Schema(description = "状态")
  private Integer status;

  @Schema(description = "备注")
  private String remark;

  @Schema(description = "排序")
  private Integer sortOrder;

  @Schema(description = "部门子集合")
  private List<OrgNodeDto> children;
}
